package compiler.tac;

import java.util.ArrayList;

public class NameStack {

	ArrayList<Integer> stack = new ArrayList<Integer>();
	
	public void pop()
	{
		stack.remove(stack.size()-1);
	}
	
	public void push(int a)
	{
		stack.add(new Integer(a));
	}
	
	public int top()
	{
		return stack.get(stack.size()-1).intValue();
	}
	
	public int size()
	{
		return stack.size();
	}
}
